package com.example.demo01.Entity.webEntity;

import org.springframework.stereotype.Component;

@Component
public class UserStatisticsInfo {
    //attributes
    private String name;//姓名
    private Integer age;//年龄
    private String sex;//性别
    private String occupation;//职业
    private String phoneNum;//手机号
    private String agentName;//代理人姓名
    private String curAddress;//当前住址
    private String nurseLevel;//护理等级
    private Integer serviceDays;//服务时长
    private Integer serviceTimes;//服务次数
    private Integer warnTimes;//报警次数
    private Float lon;//经度
    private Float lat;//纬度
    //constructors
    public UserStatisticsInfo(){ super(); }

    public UserStatisticsInfo(String name, Integer age, String sex, String occupation, String phoneNum, String agentName, String curAddress, String nurseLevel, Integer serviceDays, Integer serviceTimes, Integer warnTimes, Float lon, Float lat) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.occupation = occupation;
        this.phoneNum = phoneNum;
        this.agentName = agentName;
        this.curAddress = curAddress;
        this.nurseLevel = nurseLevel;
        this.serviceDays = serviceDays;
        this.serviceTimes = serviceTimes;
        this.warnTimes = warnTimes;
        this.lon = lon;
        this.lat = lat;
    }

    //toString
    @Override
    public String toString() {
        return "UserStatisticsInfo{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", sex='" + sex + '\'' +
                ", occupation='" + occupation + '\'' +
                ", phoneNum='" + phoneNum + '\'' +
                ", agentName='" + agentName + '\'' +
                ", curAddress='" + curAddress + '\'' +
                ", nurseLevel='" + nurseLevel + '\'' +
                ", serviceDays=" + serviceDays +
                ", serviceTimes=" + serviceTimes +
                ", warnTimes=" + warnTimes +
                ", lon=" + lon +
                ", lat=" + lat +
                '}';
    }

    //setter
    public void setName(String name) {
        this.name = name;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public void setOccupation(String occupation) {
        this.occupation = occupation;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public void setAgentName(String agentName) {
        this.agentName = agentName;
    }

    public void setCurAddress(String curAddress) {
        this.curAddress = curAddress;
    }

    public void setNurseLevel(String nurseLevel) {
        this.nurseLevel = nurseLevel;
    }

    public void setServiceDays(Integer serviceDays) {
        this.serviceDays = serviceDays;
    }

    public void setServiceTimes(Integer serviceTimes) {
        this.serviceTimes = serviceTimes;
    }

    public void setWarnTimes(Integer warnTimes) {
        this.warnTimes = warnTimes;
    }

    public void setLon(Float lon) {
        this.lon = lon;
    }

    public void setLat(Float lat) {
        this.lat = lat;
    }

    //getter
    public String getName() {
        return name;
    }

    public Integer getAge() {
        return age;
    }

    public String getSex() {
        return sex;
    }

    public String getOccupation() {
        return occupation;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public String getAgentName() {
        return agentName;
    }

    public String getCurAddress() {
        return curAddress;
    }

    public String getNurseLevel() {
        return nurseLevel;
    }

    public Integer getServiceDays() {
        return serviceDays;
    }

    public Integer getServiceTimes() {
        return serviceTimes;
    }

    public Integer getWarnTimes() {
        return warnTimes;
    }

    public Float getLon() {
        return lon;
    }

    public Float getLat() {
        return lat;
    }
}
